package com.ruoyi.salary.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.salary.mapper.HrSalaryPaymentMapper;
import com.ruoyi.salary.domain.HrSalaryPayment;
import com.ruoyi.salary.service.IHrSalaryPaymentService;

/**
 * 薪酬发放Service业务层处理
 * 
 * @author gy
 * @date 2025-05-21
 */
@Service
public class HrSalaryPaymentServiceImpl implements IHrSalaryPaymentService 
{
    @Autowired
    private HrSalaryPaymentMapper hrSalaryPaymentMapper;

    /**
     * 查询薪酬发放
     * 
     * @param id 薪酬发放主键
     * @return 薪酬发放
     */
    @Override
    public HrSalaryPayment selectHrSalaryPaymentById(Long id)
    {
        return hrSalaryPaymentMapper.selectHrSalaryPaymentById(id);
    }

    /**
     * 查询薪酬发放列表
     * 
     * @param hrSalaryPayment 薪酬发放
     * @return 薪酬发放
     */
    @Override
    public List<HrSalaryPayment> selectHrSalaryPaymentList(HrSalaryPayment hrSalaryPayment)
    {
        return hrSalaryPaymentMapper.selectHrSalaryPaymentList(hrSalaryPayment);
    }

    /**
     * 新增薪酬发放
     * 
     * @param hrSalaryPayment 薪酬发放
     * @return 结果
     */
    @Override
    public int insertHrSalaryPayment(HrSalaryPayment hrSalaryPayment)
    {
        return hrSalaryPaymentMapper.insertHrSalaryPayment(hrSalaryPayment);
    }

    /**
     * 修改薪酬发放
     * 
     * @param hrSalaryPayment 薪酬发放
     * @return 结果
     */
    @Override
    public int updateHrSalaryPayment(HrSalaryPayment hrSalaryPayment)
    {
        return hrSalaryPaymentMapper.updateHrSalaryPayment(hrSalaryPayment);
    }

    /**
     * 批量删除薪酬发放
     * 
     * @param ids 需要删除的薪酬发放主键
     * @return 结果
     */
    @Override
    public int deleteHrSalaryPaymentByIds(Long[] ids)
    {
        return hrSalaryPaymentMapper.deleteHrSalaryPaymentByIds(ids);
    }

    /**
     * 删除薪酬发放信息
     * 
     * @param id 薪酬发放主键
     * @return 结果
     */
    @Override
    public int deleteHrSalaryPaymentById(Long id)
    {
        return hrSalaryPaymentMapper.deleteHrSalaryPaymentById(id);
    }
}
